import React, { Component } from "react";

class App extends Component {
    constructor(props) {
        super(props);
        this.state = {};
    }
    render() {
        return (
            <div>
                <ul className="my-list">
                    <li>{false ? 'react.com' : '伞兵一号卢本伟准备就绪'}</li>
                    <li>js.com</li>
                </ul>
            </div>
        );
        // 手动挂载上面ul-li的代码如下
        // var child1 = React.createElement('li', null, 'react.com')
        // var child2 = React.createElement('li', null, 'js.com')
        // var root = React.createElement('ul', {className:'my-list'}, child1, child2)
    }
}

export default App;